<?php 
include_once(''.P.'/public/header.html');
?>

<script type="text/javascript" src="res/bootstrapplugin/jquery-bootstable.js"></script>
<script type="text/javascript" src="res/menu/jquery-rockmenu.js"></script>
<script type="text/javascript" src="res/menu/jquery-imgview.js"></script>
<link rel="stylesheet" type="text/css" href="res/menu/jquery-rockmenu.css">


<script>

function initbody(){
	
	table = $('#viewshow').bootstable({
		url:'index.php?m=system&a=data',method:'get',fanye:true,
		tablename:'5',cellurl:'w',
		columns:[{
			text:'类型',dataIndex:'fileext',renderer:function(v,d){
				var lx = js.filelxext(v);
				var src= 'images/fileicons/'+lx+'.gif';
				if(!d.ishui && d.thumbpath)src=d.thumbpath;
				return '<img src="'+src+'" width="20" height="20">';
			},
		},{
			text:'文件名',dataIndex:'filename',align:'left'
		},{
			text:'大小',dataIndex:'filesizecn'
		},{
			text:'上传者',dataIndex:'optname',sortable:true
		},{
			text:'上传时间',dataIndex:'adddt',sortable:true
		},{
			text:'IP',dataIndex:'ip'
		},{
			text:'浏览器',dataIndex:'web'
		},{
			text:'id',dataIndex:'id',sortable:true
		},{
			text:'',dataIndex:'opts',renderer:function(s,d){
				return '<div nowrap style="width:90px"><a class="zhu" onclick="js.fileopt('+d.id+',1)" href="javascript:;">下载</a>&nbsp;<a class="zhu" onclick="js.fileopt('+d.id+',0)" href="javascript:;">预览</a>&nbsp;<a class="zhu" href="javascript:;" onclick="deleterecord('+d.id+',5,false)">删</a></div>';
			}
		}]
		
		
	});
}
</script>
</head>

<body style="background:#f1f1f1">

<?php 
include_once(''.P.'/public/top.html');
?>

<div align="center">

<div style="width:<?=$maxwidth?>;margin:20px 0px" align="left">
	<div style="color:#cccccc">
		<a href="?m=index" class="zhu"><?=lang('admin.home')?></a> &gt;
		<a href="" class="zhu"><?=lang('admin.upfiletitle')?></a>
	</div>
	<div style="background-color:white;margin:20px 0px;border:1px #eeeeee solid;min-height:500px;border-radius:5px">
		<div style="padding:10px">
			
			<div id="viewshow"></div>
			
		</div>
		<div class="blank10"></div>
	</div>
</div>



<?php 
include_once(''.P.'/public/footer.html');
?>
</div>

</body>
</html>